package com.eh.factory.abstractFactory;

import com.eh.factory.abstractFactory.pizza.Pizza;
import com.eh.factory.abstractFactory.store.NYPizzaStore;
import com.eh.factory.abstractFactory.store.PizzaStore;

/**
 * Created by David on 2016/4/26.
 */
public class PizzaTestDrive {
    public static void main(String[] args) {
        PizzaStore nyStore = new NYPizzaStore();
        Pizza nyCheesePizza = nyStore.orderPizza("cheese");
        System.out.printf("You have order [%s].", nyCheesePizza.getName());
        System.out.println("\n\n======================\n");
        Pizza nyClamPizza = nyStore.orderPizza("clam");
        System.out.printf("You have order [%s].", nyClamPizza.getName());
    }
}
